
			document.execCommand("BackgroundCache", false, true);
			var mainLeft = document.getElementById("main_left");
			var mainLeftFir = document.getElementById("main_left_fir")
			var mainLeftSec = document.getElementById("main_left_sec")
			var pre = document.getElementById("pre");
			var next = document.getElementById("next");
			var dropMenu = document.getElementById("drop_menu")
			//美食与营养隐藏菜单栏
			function appear() {
				dropMenu.style.display = "block";
			}
			function disappear() {
				dropMenu.style.display = "none";
			}
			//美食与营养隐藏菜单栏结束
			
			//左侧轮播图
			//next和prev出现与消失
//			mainLeft.onmouseover = function(){
//				pre.style.display = "block";
//				next.style.display = "block";
//			}
//			mainLeft.onmouseout = function(){
//				pre.style.display = "none";
//				next.style.display = "none";
//			}
			//轮播图 swiper 循环问题未解决..
			var mySwiper = new Swiper('.swiper-container', {
					autoplay: 2000,
					prevButton: '#pre',
					nextButton: '#next',
					effect: 'fade',
					fade: {
						crossFade: false,
					}
				})
				//左侧轮播图结束
			//底部鼠标事件
			var local = document.getElementById("location")
			var how = document.getElementById("how")
			var news = document.getElementById("news")
			var footerImgArr = document.getElementsByClassName("menu")
			var hoverArr = ["url(../img/home-box-1_CN_hover.jpg)", "url(../img/home-box-2_CN_hover.jpg)", "url(../img/home-box-3_CN_hover.jpg)",
				"url(../img/weibo_CN_hover.jpg)", "url(../img/weixin_CN_hover.jpg)"
			];
			var normalArr = ["url(../img/home-box-1_CN.jpg)", "url(../img/home-box-2_CN.jpg)", "url(../img/home-box-3_CN.jpg)", "url(../img/weibo_CN.jpg)", "url(../img/weixin_CN.jpg)"];

			var hoverEnArr = ["url(../img/home-box-1_EN_hover.jpg)", "url(../img/home-box-2_EN_hover.jpg)", "url(../img/home-box-3_EN_hover.jpg)",
				"url(../img/weibo_EN_hover.jpg)", "url(../img/weixin_EN_hover.jpg)"
			];
			var normalEnArr = ["url(../img/home-box-1_EN.jpg)", "url(../img/home-box-2_EN.jpg)", "url(../img/home-box-3_EN.jpg)", "url(../img/weibo_EN.jpg)", "url(../img/weixin_EN.jpg)"]

			for(var i = 0; i < footerImgArr.length; i++) {
				(function(ind) {
					footerImgArr[ind].onmouseenter = function() {
						footerImgArr[ind].style.backgroundImage = hoverArr[ind];
						if(ind == 4) {
							code.style.display = "block"
						}
					}
					footerImgArr[ind].onmouseleave = function() {
						footerImgArr[ind].style.backgroundImage = normalArr[ind];
						if(ind == 4) {
							code.style.display = "none"
						}
					}

				})(i)
			}
			//语言
			function sel(ev) {
				if(ev.value == "Chinese") {
					setThing(zhObj);
					for(var i = 0; i < normalArr.length;i++){
						footerImgArr[i].style.backgroundImage = normalArr[i];
						
					}
					for(var i = 0; i < footerImgArr.length; i++) {
						(function(ind) {
							footerImgArr[ind].onmouseenter = function() {
								footerImgArr[ind].style.backgroundImage = hoverArr[ind];
								if(ind == 4) {
									code.style.display = "block"
								}
							}
							footerImgArr[ind].onmouseleave = function() {
								footerImgArr[ind].style.backgroundImage = normalArr[ind];
								if(ind == 4) {
									code.style.display = "none"
								}
							}

						})(i)
					}

				}
				if(ev.value == "English") {
					setThing(enObj);
					for(var i = 0; i < normalArr.length;i++){
						footerImgArr[i].style.backgroundImage = normalEnArr[i];
					}
					for(var i = 0; i < footerImgArr.length; i++) {
						(function(ind) {
							footerImgArr[ind].onmouseenter = function() {
								footerImgArr[ind].style.backgroundImage = hoverEnArr[ind];
								if(ind == 4) {
									code.style.display = "block"
								}
							}
							footerImgArr[ind].onmouseleave = function() {
								footerImgArr[ind].style.backgroundImage = normalEnArr[ind];
								if(ind == 4) {
									code.style.display = "none"
								}
							}
						})(i)
					}
				}
			}
			var navArr = document.getElementsByClassName("top_nav")
			var footArr = document.getElementsByClassName("foot_doc")
			function setThing(obj) {
				for(var i = 0; i<navArr.length;i++){				
					navArr[i].innerHTML = obj.nav[i];
				}
				for(var i = 0; i<footArr.length;i++){			
					footArr[i].innerHTML = obj.foot[i];
				}	
			}
			//打开新网页  图片上下问题未解决
			function open_one() {
				window.open("http://www.subway.com.cn/images/uploadImg/201612191444322d3b38.jpg")
			}

			function open_two() {
				window.open("http://www.subway.com.cn/images/uploadImg/2016040117224114977a.png")
			}
			//右面的动画 
			var i = 1;//第一张背景图序号
			var j = i + 1;//紧跟的的第二张背景图序号
			var t = setInterval(function() {
				$(".bg").animate({
					top: 0
				}, 100)
				$(".doc1").animate({
					left: 0
				}, 1000)
				$(".doc2").animate({
					left: 0
				}, 2000)
				setTimeout(function() {
					$(".doc1").animate({
						left: -280
					}, 1000)
					setTimeout(function() {
						$(".doc2").animate({
							left: -290
						}, 1000)
						$(".bg").animate({
							top: -158
						}, 300)
					}, 500)
				}, 8000)
				$("#main_right_box" + i).css("display", "none");//第一张消失
				$("#main_right_box" + j).css("display", "block");//紧跟的下一张图片出现
				if(i == 3) {
					i = 1
				} else {
					i++;
				}
				if(j == 3) {
					j = 1
				} else {
					j++;
				}
			}, 10000);